package com.cloud.system.controller;

import com.cloud.ceshi.api.RemoteCeshiService;
import com.cloud.common.core.domain.R;
import com.cloud.common.core.web.page.TableDataInfo;
import com.cloud.common.security.annotation.RequiresPermissions;
import com.cloud.system.domain.SysConfig;
import com.cloud.system.service.ISysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ceshi")
public class SysCeshiController {
    @Autowired
    private RemoteCeshiService remoteCeshiService;

    /**
     * 获取参数配置列表
     */
    @GetMapping("/list/{ddd}")
    public R list(@PathVariable("ddd") Integer ddd)
    {
        return R.ok(remoteCeshiService.list(ddd));
    }
}
